//
//  BookParserDelegate.h
//  ReadJapanese
//
//  Created by 병철 김 on 11. 7. 29..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
	E_book, E_info, E_bookId, E_title, E_mainLanguage, E_subLanguage, E_lines, E_level
    , E_image, E_s, E_a, E_b, E_author, E_offset, E_studyTypes, E_desc, E_media, E_scriptSize, E_mediaSize
    , E_authorImage, E_length
} BOOK_ELEMENTS;

@interface BookParserDelegate : NSObject<NSXMLParserDelegate> {
    int bookCount;
	id book;
	id sentence;
	NSNumber *pid;
	BOOL fReadCharacters;
	NSMutableString *stringValue;
	NSManagedObjectContext *context;
	NSNumberFormatter *numberFormatter;
	NSArray *elementString;
	NSString *entityName;
}

@property (retain, nonatomic) id book;
@property (retain, nonatomic) NSManagedObjectContext *context;
@property (assign, nonatomic, readonly) int bookCount;
@property (retain, nonatomic, readonly) NSNumberFormatter *numberFormatter;
@property (retain, nonatomic) NSString* entityName;
@end
